/**
 * Admui v1.3.0 (http://www.admui.com/)
 * Copyright 2015-2018 Admui Team
 * Licensed under the Admui License 1.0 (http://www.admui.com/about/#license)
 */
(function (window, document, $) {
    "use strict";

    window.Content = App.extend({
        run: function(next){
            $.fn.dataTable.ext.type.order['salary-grade-pre'] = function (d) {
                switch (d) {
                    case '低':
                        return 1;
                    case '中':
                        return 2;
                    case '高':
                        return 3;
                }
                return 0;
            };

            $('#dataTableExample').DataTable($.po('dataTable', {
                "columnDefs": [{
                    "type": "salary-grade",
                    "targets": -1
                }]
            }));

            next();
        }
    });
})(window, document, jQuery);

